package com.recon.template;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableDiscoveryClient
@MapperScan(basePackages = {"com.recon.template.mapper*"})
@EnableTransactionManagement
@SpringBootApplication(scanBasePackages = {"com.recon.template", "com.recon.core"})
public class MsTemplateDemoApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(MsTemplateDemoApplication.class, args);
    }

    @Override
    public void run(String... args) {
        System.out.println("MsTemplateDemoApplication project started!!!");
    }
}
